from django.urls import path
from .views import *

app_name = 'user'

urlpatterns = [
    path('register/', register, name='register'),

    path('login/', login, name='login'),
    path('logout/', logout, name='logout'),
    path('change_password/', change_password, name='change_password'),
    path('center/', center, name='center'),
    path('active/<str:token>', active, name='active'),
    path('change_head/', change_head, name='change_head'),
    path('change_username/', change_username, name='change_username'),

    path('list/', ArticleView.as_view(), name='article_list'),

    path('create/', ArticleCreateView.as_view(), name='create_article'),
    path('update/<int:pk>', ArticleUpdateView.as_view(), name='update_article'),
    path('delete/<int:pk>', ArticleDeleteView.as_view(), name='delete_article'),

]
